package com.cmhi.base.activity;

import android.app.Activity;
import android.app.DevInfoManager;
import android.os.Bundle;
import android.view.WindowManager;
import android.widget.TextView;

import com.chinamobile.SWDevInfoManager;
import com.cmhi.base.R;


public class HiddenActivity extends Activity {
    private final StringBuilder sbDevInfo = new StringBuilder();
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON, WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
        setContentView(R.layout.activity_hidden);
        TextView tvDevInfo = findViewById(R.id.tvDevInfo);

        sbDevInfo.append("HDCRURL   ");
        sbDevInfo.append(SWDevInfoManager.getDevInfoManager(this).getValue(DevInfoManager.HDCRURL));
        sbDevInfo.append("\n");
        sbDevInfo.append("EPG_ADDRESS   ");
        sbDevInfo.append(SWDevInfoManager.getDevInfoManager(this).getValue(DevInfoManager.EPG_ADDRESS));
        sbDevInfo.append("\n");
        sbDevInfo.append("CDN_ADDRESS   ");
        sbDevInfo.append(SWDevInfoManager.getDevInfoManager(this).getValue(DevInfoManager.CDN_ADDRESS));
        sbDevInfo.append("\n");
        sbDevInfo.append("CDN_ADDRESS_BACK   ");
        sbDevInfo.append(SWDevInfoManager.getDevInfoManager(this).getValue(DevInfoManager.CDN_ADDRESS_BACK));
        sbDevInfo.append("\n");
        sbDevInfo.append("TV_ID   ");
        sbDevInfo.append(SWDevInfoManager.getDevInfoManager(this).getValue(DevInfoManager.TV_ID));
        sbDevInfo.append("\n");
        sbDevInfo.append("CDN_TYPE   ");
        sbDevInfo.append(SWDevInfoManager.getDevInfoManager(this).getValue(DevInfoManager.CDN_TYPE));
        sbDevInfo.append("\n");
        sbDevInfo.append("PLAT_URL_ZTE   ");
        sbDevInfo.append(SWDevInfoManager.getDevInfoManager(this).getValue(DevInfoManager.PLAT_URL_ZTE));
        sbDevInfo.append("\n");
        sbDevInfo.append("PLAT_URL_ZTE_BACK   ");
        sbDevInfo.append(SWDevInfoManager.getDevInfoManager(this).getValue(DevInfoManager.PLAT_URL_ZTE_BACK));
        sbDevInfo.append("\n");
        sbDevInfo.append("CDN_DISPATCH_URL   ");
        sbDevInfo.append(SWDevInfoManager.getDevInfoManager(this).getValue(DevInfoManager.CDN_DISPATCH_URL));
        sbDevInfo.append("\n");
        sbDevInfo.append("CDN_DISPATCH_URL_BACK   ");
        sbDevInfo.append(SWDevInfoManager.getDevInfoManager(this).getValue(DevInfoManager.CDN_DISPATCH_URL_BACK));
        sbDevInfo.append("\n");
        sbDevInfo.append("LAUNCHER   ");
        sbDevInfo.append(SWDevInfoManager.getDevInfoManager(this).getValue(DevInfoManager.LAUNCHER));
        sbDevInfo.append("\n");
        sbDevInfo.append("OTT_TERMINAL_TYPE   ");
        sbDevInfo.append(SWDevInfoManager.getDevInfoManager(this).getValue(DevInfoManager.OTT_TERMINAL_TYPE));
        sbDevInfo.append("\n");
        sbDevInfo.append("ACTIVE_USER_TYPE   ");
        sbDevInfo.append(SWDevInfoManager.getDevInfoManager(this).getValue(DevInfoManager.ACTIVE_USER_TYPE));
        sbDevInfo.append("\n");

        tvDevInfo.setText(sbDevInfo.toString());
    }
}
